package com.example.domain.entity;

import java.util.Date;

import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
/**
 * 评论表(Comment)表实体类
 *
 * @author makejava
 * @since 2022-12-01 10:31:46
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("comment")
public class Comment  {
    @TableId
    private Long id;

    //评论类型（0文章评论，1日记评论）（后续可能有商品评论）
    private Integer type;
    //文章id
    private Long articleId;
    //根评论id
    private Long parentId;
    //评论内容
    private String content;
    //所回复的目标评论的userid
    private String parentNickName;
    
    private Long createBy;
    
    private Date createTime;
    
    private Long updateBy;
    
    private Date updateTime;
    //删除标志（0代表未删除，1代表已删除）
    private Integer delFlag;
    //父评论头像
    private String parentAvatar;
    
    private String userNickName;
    //用户头像
    private String userAvatar;
}

